#!/bin/sh
DIR='scripts/search/data/in/dv-trees1'
USERDIR=/tmp/searchusers
ROOT_DV=root
SPRUCEKEY=`cat $USERDIR/4 | jq .data.apiToken | tr -d \"`
curl -s -H "Content-type:application/json" -X POST -d @$DIR/1 "http://localhost:8080/api/dataverses/$ROOT_DV?key=$SPRUCEKEY"
echo

curl -s -H "Content-type:application/json" -X POST -d @$DIR/2 "http://localhost:8080/api/dataverses/trees?key=$SPRUCEKEY"
echo

curl -s -H "Content-type:application/json" -X POST -d @$DIR/3 "http://localhost:8080/api/dataverses/trees?key=$SPRUCEKEY"
echo
